﻿using System.Data;
using MyWeb.Data;

namespace MyWeb.Business
{
    public class OrderService
    {
        private readonly OrderController _orderController = new OrderController();

        #region [Order_GetByAll]

        public DataTable Order_GetByAll()
        {
            return _orderController.Order_GetByAll();
        }

        #endregion

        #region [Order_GetById]

        public DataTable Order_GetById(int id)
        {
            return _orderController.Order_GetById(id);
        }

        #endregion

        #region [Order_Insert]

        public void Order_Insert(OrderInfo order)
        {
            _orderController.Order_Insert(order);
        }

        #endregion

        #region [Order_Update]

        public void Order_Update(OrderInfo order)
        {
            _orderController.Order_Update(order);
        }

        #endregion

        #region [Order_Delete]

        public void Order_Delete(int id)
        {
            _orderController.Order_Delete(id);
        }

        #endregion

        #region [Order_GetId]

        public int Order_GetId()
        {
            return _orderController.Order_GetId();
        }

        #endregion
    }
}